//
//  AftermarketViewController.m
//  bluetooth
//
//  Created by 周季阳 on 15/7/2.
//  Copyright (c) 2015年 switch. All rights reserved.
//

#import "AftermarketViewController.h"
#import "UIViewAdditions.h"

@interface AftermarketViewController ()

@end

@implementation AftermarketViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initNav];
    navTitle.text = @"售后";
    self.view.backgroundColor = [self colorWithHexString:@"#F5F5F5"];
    [self initUI];
    navBtn.frame = CGRectMake(-10, 20, 70, 44);
}

#pragma mark - UI设计
-(void)initUI{
    UILabel *topLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, navView.bottom+20, SCREEN_WIDTH, 15)];
    topLabel.font = [UIFont systemFontOfSize:15];
    topLabel.text = @"C-UK 4大承诺 放心购物";
    topLabel.textColor = [UIColor blackColor];
    topLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:topLabel];
    
    UILabel *topLabelS = [[UILabel alloc]initWithFrame:CGRectMake(0, topLabel.bottom+4, SCREEN_WIDTH, 18)];
    topLabelS.font = [UIFont systemFontOfSize:15];
    topLabelS.text = @"售后电话: 400-800-5588";
    topLabelS.textColor = [UIColor blackColor];
    topLabelS.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:topLabelS];
    
    int k = 0;
    NSMutableArray *imageArray = [[NSMutableArray alloc]initWithObjects:@"售后_03",@"售后_05",@"售后_09",@"售后_10", nil];
    for (int i = 0; i < 2; i++) {
        for (int j = 0; j < 2; j++) {
            UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(5+j*160, topLabelS.bottom+20+i*139, 150, 129)];
            [image setImage:[UIImage imageNamed:[imageArray objectAtIndex:k]]];
            [self.view addSubview:image];
            k++;
        }
    }
}
#pragma mark - 返回
-(void)clickBackBtn{
    [self.navigationController popViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
